RaisingLight.Framework.Controls.UIElement = RaisingLight.Core.Object.extend(
{
    constructor: function()
    {
      	this.Elements = new Array();
		
		this.MouseDown = new Array();
		this.MouseMove = new Array();
		this.MouseUp = new Array();
    },
	
	GetVisualRegion : function()	
	{
		return new RaisingLight.Framework.Rect(new RaisingLight.Framework.Location(0, 0), new RaisingLight.Framework.Size(0, 0));	
	},
	
    OnRender: function(drawingContext)
    {
    },
	
	OnMouseDown : function(e) 	
	{
        for (var i = 0; i < this.Elements.length; i++) 
        {
            this.MouseDown[i](this, e);
        }
    },
	
	OnMouseMove : function(e)
 	{
        for (var i = 0; i < this.Elements.length; i++) 
        {
            this.MouseMove[i](this, e);
        }
    },
	
	OnMouseUp : function(e)
 	{
        for (var i = 0; i < this.Elements.length; i++) 
        {
            this.MouseUp[i](this, e);
        }
    }
});
